package timing.ukulele.item.client;

import timing.ukulele.common.ResponseResult;
import timing.ukulele.common.form.FormTemplateData;
import timing.ukulele.item.client.callback.FormClientCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "ukulele-form",fallback = FormClientCallback.class)
public interface FormClient {

    @GetMapping("/form/api/form/{id}")
    ResponseResult<FormTemplateData> findById(@PathVariable("id") Long id);
}
